package com.itheima.pojo;

import org.springframework.stereotype.Component;

@Component("user")
public class User {
    private Integer id;
    private Integer age;


    public void add(){
        System.out.println("User add -------");
    }

    public User() {
    }

    public User(Integer id, Integer age) {
        this.id = id;
        this.age = age;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
